"use strict";
const common_vendor = require("../../common/vendor.js");
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "workGuideMenu",
  props: {
    menuList: {
      type: Array,
      default: ""
    }
  },
  emits: ["onWorkGuideMenuItem"],
  setup(__props, { emit: __emit }) {
    const emit = __emit;
    const onWorkGuideMenuItem = (item) => {
      console.log("点击了更多");
      emit("onWorkGuideMenuItem", item);
    };
    return (_ctx, _cache) => {
      return {
        a: common_vendor.f(__props.menuList, (item, index, i0) => {
          return {
            a: item.icon,
            b: common_vendor.t(item.title),
            c: index,
            d: common_vendor.s(`background: linear-gradient(180deg, ${item.bgOffset0} 0%, ${item.bgOffset1} 100%);`),
            e: common_vendor.o(($event) => onWorkGuideMenuItem(item), index)
          };
        })
      };
    };
  }
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-0cf29e10"]]);
wx.createComponent(Component);
